package com.service;

import com.utils.DBUtils;

import java.sql.Connection;
import java.sql.SQLException;

public class BuyService implements BaseService{

    UserService userService = new UserService();
    OrderService orderService = new OrderService();

    @Override
    public void buy(int total){
        userService.subBalance(total);
        orderService.createOrder();
    }


}
